import { createWebHashHistory, createRouter } from 'vue-router'
// createMemoryHistory 
// createWebHistory
// createWebHashHistory

const routes = [
  { path: '/', component: () => import('@/views/HomeView.vue'), name: 'Home', },
  { path: '/about', component: () => import('@/views/AboutView.vue'), name: "About" },
  { path: '/total', component: () => import('./views/Total.vue'), name: "Total" },
]

const router = createRouter({
  // history: createMemoryHistory(),
  history: createWebHashHistory("/beijing.html"), // 使用了  # 则 变成
  routes,
})
export default router;